﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using System.Collections;

namespace Triad.Controls
{
    public class ComboTypeConverter : TypeConverter
    {
        public override StandardValuesCollection GetStandardValues(ITypeDescriptorContext context)
        {
            ArrayList cType = new ArrayList();

            cType.Add("AutoFilter");
            cType.Add("AutoSuggest");
            cType.Add("ReadOnly");
            cType.Add("TypeAhead");

            StandardValuesCollection svc = new StandardValuesCollection(cType);

            return svc;
        }

        public override bool GetStandardValuesSupported(ITypeDescriptorContext context)
        {
            return true;
        }

        public override bool GetStandardValuesExclusive(ITypeDescriptorContext context)
        {
            return true;
        }
    }

}
